Fix bug #17986 with infloop in redisplay when default-directory is nil.
authorEli Zaretskii <eliz@gnu.org>
Sun, 13 Jul 2014 14:49:59 +0000 (17:49 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 13 Jul 2014 14:49:59 +0000 (17:49 +0300)
commit1a7fc162ab2e73db0e8845d08ca119009f7d1c59
treeb19d18720d9c70e64443d7298c7e39d20a8f8877
parentbe15f462db1f8d429ac21691f9981232e5f0a138
Fix bug #17986 with infloop in redisplay when default-directory is nil.

 src/xdisp.c (decode_mode_spec): Call file-remote-p on the current
 buffer's default-directory only if it is a string.

 lisp/bindings.el (mode-line-remote): If default-directory is not a
 string, don't call file-remote-p on it; instead state in the
 help-echo that it is nil.
lisp/ChangeLog
lisp/bindings.el
src/ChangeLog
src/xdisp.c